package vip.bblog.cunadmin.modules.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 图片
 * </p>
 *
 * @author yy
 * @since
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_card")
@ApiModel(value="卡号", description="卡号")
public class Card implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "卡号")
    @Excel(name = "卡号")
    @TableField("card_num")
    private String cardNum;

    @ApiModelProperty(value = "激活码")
    @Excel(name = "激活码")
    @TableField("activation_num")
    private String activationNum;

    @ApiModelProperty(value = "是否激活")
    @TableField("is_activation")
    private Integer isActivation;

    @ApiModelProperty(value = "期限/年")
    @Excel(name = "期限/年")
    @TableField("term")
    private Integer term;

    @ApiModelProperty(value = "添加时间 ")
    @TableField("create_time")
    private String createTime;

    @Excel(name = "是否激活")
    @TableField(exist = false)
    private String activationText;

    @TableField(exist = false)
    private Integer num;
 
}
